package org.agile2soft.nexoma.core.tapestry.encoder;

import org.agile2soft.nexoma.core.controller.ServiceController;
import org.agile2soft.nexoma.core.entity.Service;
import org.hibernate.SessionFactory;

import br.com.arsmachina.controller.Controller;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ServiceEncoder extends HibernateIntegerEncoder<Service> {


    public ServiceEncoder(SessionFactory sessionFactory,
            ServiceController controller) {
        super(sessionFactory, controller);
    }

    public String toLabel(Service service) {
        return service.getName();
    }

}
